package com.eclipse.e0113_网络编程.socket_连接;

import java.io.BufferedWriter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.net.Socket;
import java.net.UnknownHostException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

public class Client {
	public static void main(String[] args) throws UnknownHostException, IOException {
		Socket client = new Socket("10.70.30.254", 8081);
		OutputStream outputStream = client.getOutputStream();
		BufferedWriter out = new BufferedWriter(new OutputStreamWriter(outputStream));
		
		List<String> list = Files.readAllLines(Paths.get("/Users/liuzhuangzhuang/test/a.txt"));
		for (String temp : list) {
			System.out.println(temp);
		}
	}
	
}
